<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>seach</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
	<style>
  #seach{
    background:url(../image/seachBg.png) no-repeat center;
    background-size:100% 100%;
  }
  h5{
     width: 100%;
     text-align: center;
     font-size: 15px;
     color:#969696;
     position: fixed;
     left: 0;
     bottom: 106px;
  }
  .cancel {
    width: 100%;
    text-align: center;
    position: fixed;
    left: 0;
    bottom: 27px;
  }
  .cancel img{
    display: inline-block;
     width: 27px;
     height:27px;
  }
</style>
</head>
<body>
  <div id="seach" v-bind:style="{height:wHeight}">
     <h5>搜索中...</h5>
     <div class="cancel"><img src="../image/cancelBtn@2x.png"></div>
  </div>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/vue.min.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript" src="../script/fastclick.js"></script>
<script type="text/javascript">
    apiready = function(){
        api.parseTapmode();
    };
    // 去掉iOS的点击延时问题
    window.addEventListener('load', function() {
        FastClick.attach(document.body);
    }, false);    
    ////初始化页面
    var app = new Vue({
        el: '#seach',
        data: {
            wHeight: ''
        },
        methods: {
            init: function() {
              /////初始化页面高度
                var wh = document.documentElement.clientHeight || document.body.clientHeight;
                this.wHeight = (wh-20) + 'px';
            },
        },
        mounted:function(){
            this.init();
        }
    });
    setTimeout(function(){
        api.confirm({
            title: '提示',
            msg: '已经超过3min还未有人接单 点击确定修改价格或者人数试试吧',
            buttons: ['确定', '取消']
        }, function(ret, err) {
            var index = ret.buttonIndex;
            //console.log(index)
        });
    },2000)
</script>
</html>
